
<?
if(CModule::IncludeModule ('iblock'))
   { 
   $offers_element = GetIBlockElement($arResult["ID"]);
   $base_id = $offers_element["PROPERTIES"]["CML2_LINK"]["VALUE"];
   $ar_base = GetIBlockElement($base_id);
   $image = CFile::GetPath($ar_base["PREVIEW_PICTURE"]);
   
   
   $arResult["PREVIEW_PICTURE"]["SRC"] = $image;
      
   }
?>